package com.slz3.business.module.configManagement.conIndexShowImg.steward;

import com.slz3.business.frame.response.RR;
import com.slz3.business.frame.response.ResInfo;
import com.slz3.business.module.configManagement.conIndexShowImg.domain.ConIndexShowImg;
import com.slz3.business.module.configManagement.conIndexShowImg.domain.ConIndexShowImgCondition;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

public class ConIndexShowImgResAtomic {

    static Mono<ServerResponse> add_$ConIndexShowImgUpdateLock(ServerRequest req, ConIndexShowImg conIndexShowImg) {
        return ConIndexShowImgResSafeValid.add(req, conIndexShowImg) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                ConIndexShowImgResExecutor.add(req, conIndexShowImg);
    }

    public static Mono<ServerResponse> delete_$ConIndexShowImgUpdateLock(ServerRequest req, ConIndexShowImgCondition conIndexShowImgCondition) {
        return ConIndexShowImgResSafeValid.delete(req, conIndexShowImgCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                ConIndexShowImgResExecutor.delete(req);
    }

    static Mono<ServerResponse> modify_$ConIndexShowImgUpdateLock(ServerRequest req, ConIndexShowImg conIndexShowImg) {
        return ConIndexShowImgResSafeValid.modify(req, conIndexShowImg) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                ConIndexShowImgResExecutor.modify(req, conIndexShowImg);
    }

    static Mono<ServerResponse> info_$ConIndexShowImgUpdateLock(ServerRequest req) {
        return ConIndexShowImgResSafeValid.info(req) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                ConIndexShowImgResExecutor.info(req);
    }

    public static Mono<ServerResponse> auditSubmit_$ConIndexShowImgUpdateLock(ServerRequest req, ConIndexShowImgCondition conIndexShowImgCondition) {
        return ConIndexShowImgResSafeValid.auditSubmit(req, conIndexShowImgCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                ConIndexShowImgResExecutor.auditSubmit(req);
    }

    public static Mono<ServerResponse> audit_$ConIndexShowImgUpdateLock(ServerRequest req, ConIndexShowImgCondition conIndexShowImgCondition) {
        return ConIndexShowImgResSafeValid.audit(req, conIndexShowImgCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                ConIndexShowImgResExecutor.audit(req);
    }

    public static Mono<ServerResponse> auditReject_$ConIndexShowImgUpdateLock(ServerRequest req, ConIndexShowImgCondition conIndexShowImgCondition) {
        return ConIndexShowImgResSafeValid.auditReject(req, conIndexShowImgCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                ConIndexShowImgResExecutor.auditReject(req);
    }


    public static Mono<ServerResponse> usingEnable_$ConIndexShowImgUpdateLock(ServerRequest req, ConIndexShowImgCondition conIndexShowImgCondition) {
        return ConIndexShowImgResSafeValid.usingEnable(req, conIndexShowImgCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                ConIndexShowImgResExecutor.usingEnable(req);
    }

    public static Mono<ServerResponse> usingDisable_$ConIndexShowImgUpdateLock(ServerRequest req, ConIndexShowImgCondition conIndexShowImgCondition) {
        return ConIndexShowImgResSafeValid.usingDisable(req, conIndexShowImgCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                ConIndexShowImgResExecutor.usingDisable(req);
    }
}
